<%include file="header.html"%> <%include file="top.html"%> <%include
file="left.html"%>
<div class="main-content">
<div class="breadcrumbs" id="breadcrumbs"><script
	type="text/javascript">
	try {
		ace.settings.check('breadcrumbs', 'fixed')
	} catch (e) {
	}
</script>

<ul class="breadcrumb">
	<li><i class="icon-home home-icon"></i> <a
		href="index.php">首页</a></li>
</ul>
<!-- .breadcrumb --></div>

<div class="page-content">
<div class="col-xs-12">
<div class="alert alert-info">
<form class="form-horizontal" role="form">
<div class="row">

<div class="col-sm-3">
<div class="row">
<label class="col-sm-6 control-label no-padding-right" for="form-field-5">游戏</label>
<div class="col-sm-3">
<select id="selectGame">
	<option value="" >游戏</option>
	<%if $selectGames%> <%foreach from = $selectGames key = key item = value%>
	<%if $nowGame == $value %>
	<option value="<%$value%>" selected><%$value%></option>
	<%else%>
	<option value="<%$value%>"><%$value%></option>
	<%/if%> <%/foreach%> <%/if%>
</select>
</div>
</div>
</div>

<div class="col-sm-3">
<div class="row">
<label class="col-sm-6 control-label no-padding-right" for="form-field-5">logType</label>
<div class="col-sm-3"><select width="150px;" id="logType">
	<option value="" >logType</option>
	<option value="LuaError"  selected >LuaError</option>
</select>
</div>
</div>
</div>


<div class="col-sm-4">
	<label class="col-sm-2 control-label no-padding-right" for="form-field-5">logKey</label>
	<div class="col-sm-10">
		<input type="text" id="logKey" class="col-xs-12 col-sm-12">
	</div>
</div>


<div class="col-sm-2">
<center>
<button type="button" onClick="formSubmit();"
	class="width-50 btn btn-sm btn-primary">查询</button>
</center>
</div>

</div>
</form>
</div>
</div>

<div class="col-sm-12" >

<%$data%>

</div>

</div>
<!-- /.page-content --></div>
<!-- /.main-content -->
<script type="text/javascript">

	jQuery(function($) {
		$('.date-picker').datepicker({
			autoclose : true
		}).next().on(ace.click_event, function() {
			$(this).prev().focus();
		});

		var oTable1 = $('#sample-table-2').dataTable({
			"aoColumns" : [ {
				"bSortable" : false
			}, {
				"bSortable" : false
			}, {
				"bSortable" : false
			}, {
				"bSortable" : false
			}, {
				"bSortable" : false
			}, {
				"bSortable" : false
			}, {
				"bSortable" : false
			}
			]
		});
/*
		$('[data-rel="tooltip"]').tooltip({
			placement : tooltip_placement
		});
		function tooltip_placement(context, source) {
			var $source = $(source);
			var $parent = $source.closest('table')
			var off1 = $parent.offset();
			var w1 = $parent.width();

			var off2 = $source.offset();
			var w2 = $source.width();

			if (parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2))
				return 'right';
			return 'left';
		}
*/		
	});
	
	/**
	查询
	*/
	function formSubmit() {
		var game = $('#selectGame').val();
		var logType = $('#logType').val();
		var logKey = $('#logKey').val();
	
		if(!game) {
			alert("请选择游戏");
			return ;
		}
		if(!logType) {
			alert("请选择类型");
			return ;
		}
		if(!logKey) {
			alert("logKey不能为空");
			return ;
		}
		url = "index.php?mod=ClientLog&do=select&action=1&game="
				+ game
				+ "&logType="
				+ logType
				+ "&logKey="
				+ logKey;
	 //	url = "http://123.59.64.163:9001/fetch_client_log?game="+game+"&logType="+logType+"&logKey="+logKey;
	 //   window.open(url);
		 
		 window.location.href = url;
	 }
</script>
<%include file="footer.html"%>

